﻿<%@ page language="java" pageEncoding="utf-8" %>
<%@ page isELIgnored="false" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + "/";
%>

<!doctype html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>影院在线售票系统</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <jsp:include page="/IncludeJS.jsp"></jsp:include>
    <script type="text/javascript">
        function toLogin() {
            var code = $("#code").val();
            var pwd = $("#password").val();
            var randCode = $("#randCode").val();
            if (code == "" || pwd == "" || randCode == "") {
                alert("请填写完整用户名，密码和验证码");
                return false;
            }
            /*
            var sysid = $("#sysid").val();
            if(sysid=="1"){
                form1.action="




            <%=basePath%>sxkj/managerAction!login.action";
		}else if(sysid="2"){
			form1.action="




            <%=basePath%>sxAgent/managerAction!login.action";
		}
		*/
            return true;

        }

        function refresh() {
            document.getElementById("codes").src = '${pageContext.request.contextPath}/enimg.jsp?' + Math.random();
        }

        /*
        function changeweb(webid){
            var url="";
            if(webid=="1"){
                url="<%=basePath%>sxkj/login.jsp";
		}else{
			url="<%=basePath%>sxAgent/login.jsp";
		}
		location.href=url;
	}
	*/
    </script>
</head>
<body>
<div class="login">
    <div class="loginC">
        <div class="login_l"><img src="${pageContext.request.contextPath }/images/bwkxt.jpg"></div>
        <div class="login_r">
            <font color="red">${msg}</font>
            <form name="form1" theme="simple" action="${pageContext.request.contextPath }/login" id="managerform"
                  method="post" onsubmit="return toLogin();">
                <ul>
                    <li>
                        <label>用户：</label>
                        <input type="text" name="managerAccount" id="code" placeholder="输入用户名"/>
                    </li>
                    <li>
                        <label>密码：</label>
                        <input type="password" name="managerPassword" id="password" placeholder="输入密码"/>
                    </li>
                    <li>
                        <label>验证码：</label>
                        <input type="text" name="randCode" id="randCode" placeholder="输入验证码" style="width:130px">
                        <img src="${pageContext.request.contextPath }/enimg.jsp" width="66" height="32" id="codes"
                             align="top" alt="点击换一张" onclick="refresh();">
                    </li>
                    <li>
                        <label></label>
                        <input type="submit" value="登 录" class="btn-login">
                    </li>
                </ul>
            </form>
        </div>
    </div>
</div>
</body>
</html>